TEMPLATE    =   lib
CONFIG      +=  c++11
CONFIG      +=  qt
TARGET      =   CFDPostUIComponents
QT          +=  core widgets gui
DEFINES     +=  CFDPostUIComponents_API

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target


include(./CFDPostUIComponents.pri)
include(../../dependencies.pri)

win32{

    INCLUDEPATH    +=  ./   \
                       ../  \
                       ../../ \
                       ../../Tools/Win64/SARibbon/include/SARibbon-2.0.1/ \

    Release:CONFIG            +=  console
    Release:DESTDIR         = ../../output/bin
    Release:MOC_DIR         = ../../generate/CFDPostUIComponents/release/moc
    Release:RCC_DIR         = ../../generate/CFDPostUIComponents/release/rcc
    Release:UI_DIR          = ../../generate/CFDPostUIComponents/release/qui
    Release:OBJECTS_DIR     = ../../generate/CFDPostUIComponents/release/obj
    Release:LIBS +=  \
        -L../../output/bin  \
        -lGUIFrame \
        -lFITKAppFramework \
        -lFITKCore \
        -lFITKWidget \
        -lPostGraphAdaptor \
        -lFITKInterfaceCFDPost \
        -lFITKRenderWindowVTK \
        -lCFDPostUtils \
        -lCFDPostDataManager

    Debug:CONFIG            +=  console
    Debug:DESTDIR         = ../../output/bin_d
    Debug:MOC_DIR         = ../../generate/CFDPostUIComponents/debug/moc
    Debug:RCC_DIR         = ../../generate/CFDPostUIComponents/debug/rcc
    Debug:UI_DIR          = ../../generate/CFDPostUIComponents/debug/qui
    Debug:OBJECTS_DIR     = ../../generate/CFDPostUIComponents/debug/obj
    Debug:LIBS +=  \
        -L../../output/bin_d  \
        -lGUIFrame \
        -lFITKAppFramework \
        -lFITKCore \
        -lFITKWidget \
        -lPostGraphAdaptor \
        -lFITKInterfaceCFDPost \
        -lFITKRenderWindowVTK \
        -lCFDPostUtils \
        -lCFDPostDataManager

Debug:LIBS +=  -L$$PWD/../../Tools/Win64/SARibbon/libd/  \
               -lSARibbonBard  \

Release:LIBS +=  -L$$PWD/../../Tools/Win64/SARibbon/lib/  \
               -lSARibbonBar

    message("Windows CFDPostUI generated")
}
